<template>
  <div>
    <el-container>
      <el-header>Header</el-header>
      <el-container>
        <el-aside width="220px">
          <div class="菜单">
            <el-row class="tac">
              <el-col >
                <el-menu router
                         default-active="2"
                         class="el-menu-vertical-demo"
                         @open="handleOpen"
                         @close="handleClose">
                  <el-submenu index="1">
                    <template slot="title">
                      <i class="el-icon-location"></i>
                      <span>个人中心</span>
                    </template>
                    <el-menu-item index="/ks">我的信息</el-menu-item>
                    <el-menu-item index="/tz">直播通知</el-menu-item>
                    <el-menu-item index="/gz">我的关注</el-menu-item>
                    <el-menu-item index="/ls">观看历史</el-menu-item>
                  </el-submenu>
                </el-menu>
              </el-col>
            </el-row>
          </div>
          <div class="菜单">
            <el-row class="tac">
              <el-col >
                <el-menu router
                         default-active="2"
                         class="el-menu-vertical-demo"
                         @open="handleOpen"
                         @close="handleClose">
                  <el-submenu index="2">
                    <template slot="title">
                      <i class="el-icon-video-camera-solid"></i>
                      <span>我的直播间</span>
                    </template>
                    <el-menu-item index="/kb">开播设置</el-menu-item>
                    <el-menu-item index="/xx">直播间信息</el-menu-item>
                    <el-menu-item index="/pk">PK设置</el-menu-item>
                  </el-submenu>
                </el-menu>
              </el-col>
            </el-row>
          </div>
          <div class="菜单">
            <el-row class="tac">
              <el-col >
                <el-menu router
                    default-active="2"
                    class="el-menu-vertical-demo"
                    @open="handleOpen"
                    @close="handleClose">
                  <el-submenu index="1">
                    <template slot="title">
                      <i class="el-icon-video-camera-solid"></i>
                      <span>直播间信息</span>
                    </template>
                    <el-menu-item index="/zl">数据总览</el-menu-item>
                    <el-menu-item index="/tj">礼物统计</el-menu-item>
                    <el-menu-item index="/ph">消费排行</el-menu-item>
                  </el-submenu>
                </el-menu>
              </el-col>
            </el-row>
          </div>
        </el-aside>

        <el-main>
          <div class="标题">
            <h>PK设置</h>
          </div>
          <el-card class="box-card">
            <div slot="header" class="clearfix">
         <span>
           <div style="text-align: left"> PK黑名单设置
           </div>
         </span>
            </div>
            <div class="说明">
              加入PK的黑名单后，随机匹配将无法匹配上TA。
            </div>
            <el-form :model="numberValidateForm" ref="numberValidateForm" label-width="50px" class="demo-ruleForm">
              <el-form-item class="输入框"
                  prop="age">
                <el-input class="" type="age" v-model.number="numberValidateForm.age" autocomplete="off"></el-input>
              </el-form-item>
              <el-form-item class="查询">
                <el-button type="primary" @click="submitForm('numberValidateForm')">提交</el-button>
              </el-form-item>
            </el-form>
          </el-card>
        </el-main>
      </el-container>
    </el-container>
    <div>
    </div>
  </div>
</template>

<script>
export default {
  name: "PK设置",
  data() {
    return {
      activeName: '1',
      circleUrl: "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png",
      sizeList: ["large"],
      numberValidateForm: {
        age: ''
      }
    };
  },
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    },
    submitForm(formName) {
      this.$refs[formName].validate((valid) => {
        if (valid) {
          alert('submit!');
        } else {
          console.log('error submit!!');
          return false;
        }
      });
    },
    resetForm(formName) {
      this.$refs[formName].resetFields();
    }
  }
}
</script>

<style >
body{ background-color:#EEEEEE}

.box-card {
  float:right;
  margin-right:3%;
  margin-left:3%;
  width:94%;
  margin-bottom: 5%;
  height:400px;
}

.菜单
{
  margin-left:3%;
}
.标题
{
  position:relative;
  font-size:x-large;
  top:-20px;
  float:left;
  margin-left:3%;
}
.说明
{
  font-size: xx-small;
  color:#888888;
  text-align: left;
}
.查询{
  position: relative;
  left:-70px;
  top:-60px
}
.输入框 {
  position: relative;
  left:-55px;
  width:40%;
  margin-top:3%;
}
</style>
